#include "Heap.h"

void test()
{
    Heap hp;
    HeapInit(&hp);
    HeapPush(&hp, 50);
    HeapPush(&hp, 15);
    HeapPush(&hp, 20);
    HeapPush(&hp, 30);
    HeapPush(&hp, 40);
    HeapPush(&hp, 10);
    HeapPrint(&hp);
    //int top = HeapTop(&hp);
    //printf("%d\n", top);
    HeapPop(&hp);
    HeapPrint(&hp);
    HeapPop(&hp);
    HeapPrint(&hp);
    HeapPop(&hp);
    HeapPrint(&hp);
    HeapPop(&hp);
    HeapPrint(&hp);
    HeapPop(&hp);
    HeapPrint(&hp);
    HeapPop(&hp);
    HeapPrint(&hp);
    //HeapPop(&hp);
    //HeapPrint(&hp);
}
void test_HeapSort()
{
    int arr[6] = { 19,15,20,17,13,10 };
    HeapSort(arr, 6);
    for (int i = 0; i < 6; i++)
    {
        printf("%d ", arr[i]);
    }
    printf("\n");
}

int main()
{
    //test();
    test_HeapSort();
    return 0;
}